<ng-container *ngIf="!outlet.isActivated">
    <div class="px-5 py-2">
        <h4 style="font-size: 1.1rem;font-weight:400;" class="mt-5 mb-5 text-center">新增配送线路客户</h4>
        <div class="row">
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">配送线路编码</span>
                </div>
                <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control">
            </div>
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">线路名称</span></div>
                <div class="border-l-0 border-r-0 radius-0 border-t-0 form-control p-0">
                    <select [(ngModel)]="goods.goodsParentType" class="bg custom-select border-0" title="请输入关键词">
            <option *ngFor="let type of parentTypes" [ngValue]="type.value">{{type.text}}</option>
          </select>
                </div>
            </div>
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">所属区域</span>
                </div>
                <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control">
            </div>
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">所属部门</span>
                </div>
                <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control">
            </div>
        </div>
        <div class="row">

            <div class="input-group mb-3 col-sm-3">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">配送司机</span>
                </div>
                <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control">
            </div>
            <div class="input-group mb-3 col-sm-3">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">配送人员</span>
                </div>
                <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control">
            </div>
        </div>
    </div>
    <div class="p-2  bg-white my-5">
        <div class="card-body">
            <h4 style="font-size: 1.1rem;font-weight:400;" class="mt-5 mb-5 text-center">新增商品</h4>
            <div class="table-responsive">
                <table class="table table-striped">
                    <tbody>
                        <tr class="font-weight-bold bg-light">
                            <td *ngFor="let th of orderTh">{{th}}</td>
                        </tr>
                        <tr>
                            <td>1</td>
                            <td>
                                <ts-checkbox color="secondary" [value]="1" [(ngModel)]="way"></ts-checkbox>
                            </td>
                            <td><input [(ngModel)]="search.params.name" type="text" class="form-control" placeholder="请输入关键词">
                            </td>
                            <td>4</td>
                            <td>5</td>
                            <!-- {{td.createdAt.substring(0,10)|date:'yyyy/MM/dd'}} -->
                            <td>3</td>
                            <td>4</td>
                            <!-- <span *ngIf="td.isActive===1" class="badge badge-success badge-pill">启用</span>
                                    <span *ngIf="td.isActive!==1" class="badge badge-secondary badge-pill">停用</span> -->
                            <td>
                                <!-- <span (click)="confirmDelete(td)" tsTip="删除" class="btn-icon btn-icon-danger">
                    <i tsIcon="delete"></i>
                  </span>
                                    <span tsTip="详情/编辑" class="btn-icon btn-icon-info" routerLink="detail/{{td.id}}">
                    <i tsIcon="edit"></i>
                  </span> -->
                                <span (click)="confirmDelete()" tsTip="添加商品" class="btn-icon btn-icon-success">
                    <!-- <i tsIcon="delete"></i> -->添加
                  </span>
                                <span (click)="confirmDelete()" tsTip="删除" class="btn-icon btn-icon-danger">
                    <i tsIcon="delete"></i>
                  </span>
                                <span tsTip="详情/编辑" class="btn-icon btn-icon-info">
                    <i tsIcon="edit"></i>
                  </span>
                                <!-- <span tsTip="查看" class="btn-icon btn-icon-info" routerLink="user">
<i tsIcon="edit"></i>查看
</span> -->
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <div class="text-right">
                <ts-pagination (pageChange)="loadDatas()" [pagination]="pagination" [items]="[{text:'显示 5 条',value:5},{text:'显示 10 条',value:10},{text:'显示 20 条',value:20}]" [color]="global.params.color" goTitle="跳转" prevTitle="上一页" nextTitle="下一页" startTitle="首页" endTitle="末尾"
                    outline></ts-pagination>
            </div>
        </div>
    </div>

    <div class="my-5 m-btn text-right pr-5">
        <button routerLink="/business/route" tsBtn color="white">返回列表</button>
        <button *ngIf="goods.id===0" tsBtn loading color="success" (submit)="confirmInsert($event)">确定</button>
        <button routerLink="/business/route" tsBtn color="danger">取消</button>
        <!-- <button tsBtn color="success" (click)="resetForm()">新增</button> -->
        <!-- <button tsBtn color="warning" (click)="resetForm()">打印</button>
        <button tsBtn loading color="primary" (submit)="confirmUpdate($event)">分享</button> -->
    </div>
</ng-container>

<router-outlet #outlet="outlet"></router-outlet>